<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Menu_formularios extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->helper('form');
		$this->check_isvalidated();		
		//$this->load->library('tank_auth');
	}

	function index()
	{		
		$data['id_producto'] = $this->uri->segment(3);
		$this->load->view('menu_formularios_view', $data);
	}
	
	
	
	private function check_isvalidated(){
		if(! $this->session->userdata('validated')){
			redirect('/welcome');
		}
	}
}
